package com.gift.pojo;

import java.math.BigDecimal;

/**
 * 所含游戏表
 */
public class Games {
    /**
     * 游戏的Id
     */
    private Integer gid;
    /**
     * 游戏名字
     */
    private String gname;
    /**
     * 买分的比例
     */
    private BigDecimal buyProportion;
    /**
     * 卖分的比例
     */
    private BigDecimal sellProportion;
    /**
     * 进货的比例
     */
    private BigDecimal stockProportion;
    /**
     * 是否使用
     */
    private Integer isuse;

    public Games(Integer gid, String gname, BigDecimal buyProportion,BigDecimal sellProportion,BigDecimal stockProportion, Integer isuse) {
        this.gid = gid;
        this.gname = gname;
        this.buyProportion = buyProportion;
        this.sellProportion = sellProportion;
        this.stockProportion = stockProportion;
        this.isuse = isuse;
    }

    public Games() {
        super();
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname == null ? null : gname.trim();
    }

    public BigDecimal getBuyProportion() {
        return buyProportion;
    }

    public void setBuyProportion(BigDecimal buyProportion) {
        this.buyProportion = buyProportion;
    }

    public BigDecimal getSellProportion() {
        return sellProportion;
    }

    public void setSellProportion(BigDecimal sellProportion) {
        this.sellProportion = sellProportion;
    }

    public BigDecimal getStockProportion() {
        return stockProportion;
    }

    public void setStockProportion(BigDecimal stockProportion) {
        this.stockProportion = stockProportion;
    }

    public Integer getIsuse() {
        return isuse;
    }

    public void setIsuse(Integer isuse) {
        this.isuse = isuse;
    }

    @Override
    public String toString() {
        return "Games{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", buyProportion=" + buyProportion +
                ", sellProportion=" + sellProportion +
                ", stockProportion=" + stockProportion +
                ", isuse=" + isuse +
                '}';
    }
}